package com.xdjd.mobile.business.util;


import com.xdjd.mobile.business.constant.Constant;

/**
 * 密码工具类
 */
public class PasswordUtils {

	/**
	 * 加密
	 * 
	 * @param plaintext
	 *            明文密码
	 * @param username
	 *            账号
	 * @return
	 */
	public static String encrypt(String plaintext, String username) {
		return MD5Utils.encrypt(plaintext + username);
	}

	public static void main(String[] args) {
		System.out.println(PasswordUtils.encrypt(Constant.DEFAULT_PASSWORD,"15586401317"));
	}

}
